when I define a array for example a[n][n],
what are the different between a+i and *(a+i)?
they are all adress.
thank you(I'm a foreigner ,english is bad ^_^)
when I define a array for example a[n][n],
what are the different between a+i and *(a+i)?
they are all adress.
thank you(I'm a foreigner ,english is bad ^_^)
a+i is an address of the (i+1)th array stored in a
*(a+i) dereferences the first element in the (i+1)th array. It is not an address unless the arrays are storing addresses.
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter